﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace XCommunity.Documents.UBB
{
  /// <summary>
  /// 代表一个UBB开始标签
  /// </summary>
  public class UbbBeginTag
  {

    public string TagName
    {
      get;
      internal set;
    }

    public string Parameter
    {
      get;
      internal set;
    }

    public override string ToString()
    {

      string content = TagName;
      if ( Parameter != null )
        content += "=" + Parameter;

      return string.Format( "[{0}]", content );
    }

  }
}
